package com.liik.bomb.screen.level;

import com.liik.bomb.BombActivity;
import com.liik.game.mvc.GameModel;
import com.liik.game.mvc.object.Display;
import com.liik.game.mvc.object.Menu.Item;
import com.liik.game.mvc.object.Navigation;
import com.liik.game.mvc.simple.SimpleGameController;

public class LevelChooserController extends SimpleGameController {

	public final static int MENU_ID_PLAY = 0;
	public final static int MENU_ID_BACK = 1;

	@Override
	public void update(GameModel gameModel, Navigation navigation, Display display) {

	}

	@Override
	public void handleMenuEvent(Item menuItem, GameModel activeModel) {
		switch (menuItem.id) {
		case MENU_ID_BACK:
			screenHolder.popScreen("Back");
			break;
		case MENU_ID_PLAY:
			screenHolder.pushScreen(BombActivity.SCREEN_ID_BOMB_GAME, "Start");
			break;
		}
	}
}
